<?php

namespace App\DashboardBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * App\DashboardBundle\Entity\Product
 */
class Product
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $name
     */
    private $name;

    /**
     * @var string $type
     */
    private $type;

    /**
     * @var \DateTime $createdDate
     */
    private $createdDate;

    /**
     * @var integer $isActive
     */
    private $isActive;

    /**
     * @var string $source
     */
    private $source;

    /**
     * @var \DateTime $madeInDate
     */
    private $madeInDate;    

    /**
     * @var App\DashboardBundle\Entity\Category
     */
    private $category;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Product
     */
    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set type
     *
     * @param string $type
     * @return Product
     */
    public function setType($type)
    {
        $this->type = $type;
    
        return $this;
    }

    /**
     * Get type
     *
     * @return string 
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set createdDate
     *
     * @param \DateTime $createdDate
     * @return Product
     */
    public function setCreatedDate($createdDate)
    {
        $this->createdDate = $createdDate;
    
        return $this;
    }

    /**
     * Get createdDate
     *
     * @return \DateTime 
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }

    /**
     * Set isActive
     *
     * @param integer $isActive
     * @return Product
     */
    public function setIsActive($isActive)
    {
        $this->isActive = $isActive;
    
        return $this;
    }

    /**
     * Get isActive
     *
     * @return integer 
     */
    public function getIsActive()
    {
        return $this->isActive;
    }

    /**
     * Set source
     *
     * @param string $source
     * @return Product
     */
    public function setSource($source)
    {
        $this->source = $source;
    
        return $this;
    }

    /**
     * Get source
     *
     * @return string 
     */
    public function getSource()
    {
        return $this->source;
    }

    /**
     * Set madeInDate
     *
     * @param \DateTime $madeInDate
     * @return Product
     */
    public function setMadeInDate($madeInDate)
    {
        $this->madeInDate = $madeInDate;
    
        return $this;
    }

    /**
     * Get madeInDate
     *
     * @return \DateTime 
     */
    public function getMadeInDate()
    {
        return $this->madeInDate;
    }

    /**
     * Set category
     *
     * @param App\DashboardBundle\Entity\Category $category
     * @return Product
     */
    public function setCategory(\App\DashboardBundle\Entity\Category $category = null)
    {
        $this->category = $category;
    
        return $this;
    }

    /**
     * Get category
     *
     * @return App\DashboardBundle\Entity\Category 
     */
    public function getCategory()
    {
        return $this->category;
    }
    
    public function __toString()
    {
      return $this->name;
    }
    
    private $createdUserId;
    
    public function getCreatedUserId()
    {
      return $this->createdUserId;
    }

    public function setCreatedUserId($createdUserId)
    {
      $this->createdUserId = $createdUserId;
    }


    
}